package com.ruoyi.web.core.config;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.time.Instant;

@SpringBootTest
class DemoApplicationTests {


    @Autowired
    private GeTuiUtils geTuiUtils;
    @Test
    void pushV2() {
        // 获取当前时间戳
        long currentTimestamp = Instant.now().getEpochSecond();

        // 将时间戳转换为字符串
        String currentTimestampString = String.valueOf(currentTimestamp);


        System.out.println(currentTimestampString);
        //单个推送
//        geTuiUtils.pushToSingleByCid("f2344e96019bfb8353683e38f6f30307","单个cid推送","单个cid推送");
        //批量推送
//        List<String> list = new ArrayList<>();
//        list.add("xxx");
//        geTuiUtils.pushListByCid(list,"批量推送","批量推送");
    }


}
